﻿<!---
 
  Copyright (c) 2010, Cristian Costantini - cristian@millemultimedia.it
  
  FileManager is licensed under the terms of the Open Source GPL 3.0 license. 
	
	http://www.gnu.org/licenses/gpl.html
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--->

<cfcomponent output="false" extends="fileManager.core.ApplicationCore">

    <cfsetting showdebugoutput="false" />
	
    <cfprocessingdirective pageencoding="utf-8" />
    <cfcontent type="text/html; charset=utf-8" />
    <cfset SetEncoding("url", "utf-8")>
    <cfset SetEncoding("form", "utf-8")>
    
    <cfset this.name = "FileManager_" & hash( cgi.HTTP_HOST ) />
	<cfset this.applicationTimeout = createTimeSpan(0,2,0,0) />
	<cfset this.sessionTimeout = createTimeSpan(0,0,40,0) />
	<cfset this.clientManagement = false />
	<cfset this.loginStorage = "session" />
	<cfset this.sessionManagement = true />
	<cfset this.setClientCookies = true />
	
	
	<cfset this.path = "/" />
	<cfset this.mappings["/plugin"] = expandPath( '/fileManager/plugin/' ) />
	
	<cffunction name="onApplicationStart" returnType="boolean" output="false">
		<cfscript>
		super.onApplicationStart( argumentCollection=arguments );
		</cfscript>		
		<cfreturn true />
	</cffunction>
	
	<cffunction name="onRequestStart" returnType="boolean" output="false">
		<cfargument name="thePage" type="string" required="true" />
		<cfset super.onRequestStart( argumentCollection=arguments ) />
		<cfreturn true />
	</cffunction>
	
	<cffunction name="onSessionStart" returnType="void" output="false">
		
        <cfset super.onSessionStart( argumentCollection=arguments ) />
	</cffunction>
	
	<cffunction name="onSessionEnd" returnType="void" output="false">
        <cfset super.onSessionEnd( argumentCollection=arguments ) />
	</cffunction>
	
</cfcomponent>